﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    if (Request.IsAuthenticated) {
      KnowledgeEntity.UserAccount user = KnowledgeEntity.UserAccountFactory.GetUserInstanceByCode(Page.User.Identity.Name);
%>
      欢迎回来! <strong><%: user.Name%></strong>!
<%    if (user is KnowledgeEntity.ProfessorAccount) {%>
      [ <%: Html.ActionLink("查看等待审核的条目", "ShowWaitingApprove", "Article")%>]
      <%}else if(user is KnowledgeEntity.AdminAccount) { %>
      [ <%: Html.ActionLink("系统配置管理","Configuration","Admin") %>]
      <%} %>
      [ <%: Html.ActionLink("退出登录", "LogOff", "Account")%> ]
<%
    }
    else {
%> 
        [ <%: Html.ActionLink("登录", "LogOn", "Account", new { returnUrl = Context.Request.Url.AbsoluteUri }, null)%> ]
<%
    }
%>
